package studentfunction;

import student.StudenList;
import student.Student;

public class ShowFunction implements IFunction{
    @Override
    public void work(StudenList studenList) {
        System.out.println("显示学生信息");
        int currentSize= studenList.getUsedsize();
        for (int i = 0; i < currentSize; i++) {
            Student student=studenList.getStudent(i);
            System.out.println(student);
        }
    }
}
